package com.jemmyee.shop.entity;

// default package

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

/**
 * @Description:会员账目
 * @author:jemmyee@gmail.com
 * @date:2011-4-1
 * @version:v1.0
 */
@Entity
@Table(name = "so_user_account")
public class UserAccount implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer userId;
	private String adminName;
	private Double amount;
	private Integer addTime;
	private Integer paidTime;
	private String adminNote;
	private String userNote;
	private Short processType;
	private String payment;
	private Short isPaid;


	// Property accessors
	@GenericGenerator(name = "generator", strategy = "increment")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "user_id")
	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	@Column(name = "admin_name")
	public String getAdminName() {
		return this.adminName;
	}

	public void setAdminName(String adminName) {
		this.adminName = adminName;
	}

	@Column(name = "amount", precision = 10)
	public Double getAmount() {
		return this.amount;
	}

	public void setAmount(Double amount) {
		this.amount = amount;
	}

	@Column(name = "add_time")
	public Integer getAddTime() {
		return this.addTime;
	}

	public void setAddTime(Integer addTime) {
		this.addTime = addTime;
	}

	@Column(name = "paid_time")
	public Integer getPaidTime() {
		return this.paidTime;
	}

	public void setPaidTime(Integer paidTime) {
		this.paidTime = paidTime;
	}

	@Column(name = "admin_note")
	public String getAdminNote() {
		return this.adminNote;
	}

	public void setAdminNote(String adminNote) {
		this.adminNote = adminNote;
	}

	@Column(name = "user_note")
	public String getUserNote() {
		return this.userNote;
	}

	public void setUserNote(String userNote) {
		this.userNote = userNote;
	}

	@Column(name = "process_type")
	public Short getProcessType() {
		return this.processType;
	}

	public void setProcessType(Short processType) {
		this.processType = processType;
	}

	@Column(name = "payment", length = 90)
	public String getPayment() {
		return this.payment;
	}

	public void setPayment(String payment) {
		this.payment = payment;
	}

	@Column(name = "is_paid")
	public Short getIsPaid() {
		return this.isPaid;
	}

	public void setIsPaid(Short isPaid) {
		this.isPaid = isPaid;
	}

}